import request from '../api/request';
import { requestUrl  } from '../api/http-url';

export const interfacesUser = {
  // 登录
  login: (data) => request({ url: `${requestUrl.api}/wshop/auth/login`, data, showToast: false}),
  // 获取注册验证码
  getVerificationCode: (data) => request({ url: `${requestUrl.api}/wshop/auth/email-verification-code`, data }),
  // 注册
  register: (data) => request({ url: `${requestUrl.api}/wshop/auth/register`, data },),
  // 获取用户信息
  getUserInfo: (data) => request({ url: `${requestUrl.api}/wshop/user/info`, data },),
}